package com.runoob.java;

public class EmployeeTest {
    public static void main(String[] args) {
        // 使用构造器创建两个变量
        Employee employeeOne = new Employee("oo1");
        Employee employeeTwo = new Employee("pp2");

        // 调用这两个对象的成员方法
        employeeOne.setAge(26);;
        employeeOne.setDesignation("护士");
        employeeOne.setSalary(4000);
        employeeOne.printEmployee();

        employeeTwo.setAge(29);;
        employeeTwo.setDesignation("老师");
        employeeTwo.setSalary(3900);
        employeeTwo.printEmployee();
    }
}
